{% extends 'TopxiaAdminBundle::layout.html.twig' %}
{% block title %}激活码管理{% endblock %}


{% set script_controller = 'activema/activema' %}


{% block content %}
{{ web_macro.flash_messages() }}
<div class="well well-sm mtl">
    <form id="activema-search-form" class="form-inline" action="" method="get" novalidate="">
      <div class="form-group">
        <input style="max-width:150px;" class="form-control" type="text" placeholder="机器码" name="machine" value="{{ app.request.get('machine') }}">
      </div>
      <div class="form-group">
        <input style="max-width:150px;" class="form-control" type="text" placeholder="网卡码" name="mac" value="{{ app.request.get('mac') }}">
      </div>
      <div class="form-group">
        <input style="max-width:100px;" class="form-control" type="text" placeholder="起始日期" name="starttime" value="{{ app.request.get('starttime') }}">—
        <input style="max-width:100px;" class="form-control" type="text" placeholder="结束日期" name="endtime" value="{{ app.request.get('endtime') }}">
      </div>
      <div class="form-group">
        <input style="max-width:150px;" class="form-control" type="text" placeholder="地区" name="area" value="{{ app.request.get('area') }}">
      </div>
      <button class="btn btn-primary">搜索</button>
      <a href="{{ path('admin_activema_show') }}" class="btn" style="float:right;">正式用户</a>

    </form>
</div>
<table class = 'table table-striped table-hover'>
<thead>
    <tr>
        <th>ID</th><th>机器码</th><th>网卡码</th><th>激活日期</th><th>姓名</th><th>手机号</th><th>QQ号</th><th>地区</th>
    </tr>
</thead>
<tbody>
{% for activema in trylist %}
    <tr>
        <td>{{ activema.id }}</td>
        <td>{{ activema.machine }}</td>
        <td>{{ activema.mac }}</td>
        <td>{{ activema.starttime }}</td>
        <td>{{ activema.xingming }}</td>
        <td>{{ activema.mobile }}</td>
        <td>{{ activema.qq }}</td>
        <td>{{ activema.area }}</td>
    </tr>
{% else %}
    <tr><td colspan="15"><div class="empty">暂无试用记录</div></td></tr>
{% endfor %}
</tbody>
</table>
{{ web_macro.paginator(paginator) }}
{% endblock %}